package com.atguigu.gmall.order.feign;


import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-order",path = "/order")
public interface OrderFeign {


    /**
     * 查询订单详情
     *
     * @param id
     * @return
     */
    @GetMapping(value = "/getById/{id}")
    public OrderInfo getById(@PathVariable(value = "id")Long id);
}
